<script setup>
import { ref } from 'vue'
import vMapDraw from '@/components/mapbox-gl-draw/index.vue'

const mapDrawRef = ref(null)

const load = (draw, map) => {
  map.on('draw.create', (e) => {
    console.log('draw.create', e)
  })
}
</script>

<template>
  <v-map-draw ref="mapDrawRef" @load="load"></v-map-draw>
</template>

<style lang="scss" scoped></style>
